/*
 * @(#)BaseEnityDao.java
 *
 * Copyright 2008 by congpy, All rights reserved.
 */

package com.xsky.database.dao.facade;

import java.util.List;
import java.util.Map;

public interface IBaseEnityDao<T> extends Dao
{
	public void delete(Object persistentInstance);
	public void insertEntity(T entity);

	public void insertEntity(List<T> entities);

	public void updateEntity(T entity);

	public void updateEntity(final List<T> entities);

	public List<T> selectByMap(Map map);

	public void deleteByMap(Map map);

	public void deleteByKey(String entityName, String key, String value);
	public List findAll(String className);
	public Object findByPrimaryKey(Object entity, String key,String value);
}
